package com.machuxin.course.patterns.chain;


import org.springframework.util.StringUtils;

public class ValidateHandler extends Handler {

    public void doHandle(Member member) {
        if (StringUtils.isEmpty(member.getLoginName()) |
                StringUtils.isEmpty(member.getLoginPass())) {
            System.out.println("用户名或者密码为空");
            return;
        }

        System.out.println("ffl户名和密码校验成功，可以往下执行");
        chain.doHandle(member);
    }
}
